<%@ page import="com.onlinevideo.entity.User" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%
    User user = (User)request.getAttribute("user");
%>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <title></title>
    <link rel="stylesheet" href="../static/css/bootstrap.min.css">
    <script type="text/javascript" src="../static/js/jquery-1.11.3.min.js"></script>
    <script type="text/javascript" src="../static/js/bootstrap.min.js"></script>
    <script src="../static/js/sweetalert.min-2.1.2.js" type="text/javascript"></script>
    <style type="text/css">
        .gro{
            margin-bottom: 0px;
        }
        .ope{
            margin-left: 30px;
        }
        body::-webkit-scrollbar{
            display: none;/*隐藏滚动条*/
        }
        .content::-webkit-scrollbar {
            display: none;/*隐藏滚动条*/
        }
        iframe{
            border: 2px solid #c1c1c1;
            border-radius: 15px;
        }

    </style>
    <script type="text/javascript">
        $(function (){
            <%
               if(user == null){

           %>
            swal("提示", "用户未登录,请移步登录页面", "error").then(function (isOk) {
                location.href="../view/login.jsp"
            });
            <% }%>
            $(".opera").click(function (event){
                event.preventDefault();
               $("#contentIframe").attr("src",$(this).attr("data-href"))

            });
        });
 </script>
</head>
<body>
                    <%--导入导航栏--%>
    <jsp:include page="header.jsp"/>
    <div class="container">
        <div class="row" style="margin-top: 70px;">
            <div class="col-md-3"  style="height:  680px;border: 2px solid #c1c1c1;padding: 0px;border-radius: 15px;overflow: hidden">
                <div class="list-group gro" >
                    <a href="#" class="list-group-item active">
                        <h4 class="list-group-item-heading">
                           我的
                        </h4>
                    </a>
                    <a href="#" class="list-group-item opera" data-href="../gateway?action=userinfo">
                        <h4 class="list-group-item-heading ope"  >个人信息</h4>
                    </a>
                    <a href="#" class="list-group-item opera" data-href="../gateway?action=favorites">
                        <h4 class="list-group-item-heading  ope" >收藏</h4>
                    </a>
                    <a href="#" class="list-group-item opera" data-href="../gateway?action=historyrecord">
                        <h4 class="list-group-item-heading ope" style="color: skyblue">历史记录</h4>
                    </a>
                    <a href="#" class="list-group-item opera" data-href="../gateway?action=message">
                        <h4 class="list-group-item-heading ope" >消息中心</h4>
                    </a>
                </div>
                <div class="list-group gro" >
                    <a href="#" class="list-group-item active">
                        <h4 class="list-group-item-heading">
                            创作中心
                        </h4>
                    </a>
                    <a href="../gateway?action=videoupload" class="list-group-item" >
                        <h4 class="list-group-item-heading ope">投稿</h4>
                    </a>
                    <a href="../gateway?action=videolist" class="list-group-item"  >
                        <h4 class="list-group-item-heading ope">稿件管理</h4>
                    </a>
                </div>
            </div>
            <div class="col-md-9 content" style="height:  680px;overflow: auto;padding: 0">
                <iframe id="contentIframe" src="../gateway?action=userinfo" style="width: 100%;height: 100%"></iframe>
            </div>
        </div>
    </div>
    <%--导入底部栏--%>
    <jsp:include page="footer.jsp"/>
</body>
</html>
